From f25457c270fd8890f992e02b8ead8db9a3c9cfe2 Mon Sep 17 00:00:00 2001 From: Jeremy Bryant Date: Mon, 1 Apr 2024 16:39:49 +0100 Subject: [PATCH] Replace wholenump by natnump for context readability * which-key.el (which-key--width-or-percentage-to-width, which-key--height-or-percentage-to-height): Use natnump instead of wholenump. --- which-key.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/which-key.el b/which-key.el index 781fee9683c..820875bfdaf 100644 --- a/which-key.el +++ b/which-key.el @@ -1170,7 +1170,7 @@ If WIDTH-OR-PERCENTAGE is a whole number, return it unchanged. Otherwise, it should be a percentage (a number between 0 and 1) out of the frame's width. More precisely, it should be a percentage out of the frame's root window's total width." - (if (wholenump width-or-percentage) + (if (natnump width-or-percentage) width-or-percentage (round (* width-or-percentage (window-total-width (frame-root-window)))))) @@ -1180,7 +1180,7 @@ If HEIGHT-OR-PERCENTAGE is a whole number, return it unchanged. Otherwise, it should be a percentage (a number between 0 and 1) out of the frame's height. More precisely, it should be a percentage out of the frame's root window's total height." - (if (wholenump height-or-percentage) + (if (natnump height-or-percentage) height-or-percentage (round (* height-or-percentage (window-total-height (frame-root-window)))))) -- 2.30.2